package com.kerrykidz.scminvoicing.dao.model;

import java.util.Date;
import java.util.List;

import com.rdp.framework.core.model.MyBatisSuperModel;
import com.rdp.framework.exception.RDPException;
import com.rdp.util.lang.StringUtil;
import com.rdp.util.time.DateFormatUtil;

public class GblScmPrdPriceEntity  extends  MyBatisSuperModel{
	private String  pkPriceId;
    private String fkPrdId;
    private String status;
    private Double marketPrice;
    private Double headPrice;
    private Date validFrom;
    private Date validTo;
    private String modiBy;
    private Date modiTime;
    private String auditRemark;//复核意见
    //业务扩展字段
    private String isBoss;//是否为总监
    private String  prdName;
    private String  prdSpec;
    private String unitName;
    private String isAllow;
    private String pkPrdId;
    private String setPriceTime;//定价日期
    private String cateName;//分类名字
    private String cateId;//分类Id
    private String isNew;//是否会产生历史
    private String userName;//用户姓名
    private String branName;//门店名称
    private List<GblScmPrdCateEntity> cateList;//商品分类包含的信息
    private String orderTime;//定价时间
	public List<GblScmPrdCateEntity> getCateList() {
		return cateList;
	}
	public void setCateList(List<GblScmPrdCateEntity> cateList) {
		this.cateList = cateList;
	}
	public String getBranName() {
		return branName;
	}
	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}
	public void setBranName(String branName) {
		this.branName = branName;
	}
	public String getIsBoss() {
		return isBoss;
	}
	public void setIsBoss(String isBoss) {
		this.isBoss = isBoss;
	}
	public String getOrderTime() throws RDPException{
		if(StringUtil.isNotBlank(this.orderTime)){
			return this.orderTime;
		}
    	if(this.getModiTime()!=null){
    		return DateFormatUtil.convertDateToStr(this.getModiTime(), "yyyy-MM-dd ");
    	}
    	return "";
    }
	public String getPkPriceId() {
		return pkPriceId;
	}
	public void setPkPriceId(String pkPriceId) {
		this.pkPriceId = pkPriceId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIsNew() {
		return isNew;
	}

	public void setIsNew(String isNew) {
		this.isNew = isNew;
	}

	public String getSetPriceTime() {
		return setPriceTime;
	}

	public void setSetPriceTime(String setPriceTime) {
		this.setPriceTime = setPriceTime;
	}

	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	public String getCateId() {
		return cateId;
	}

	public void setCateId(String cateId) {
		this.cateId = cateId;
	}


	public String getPkPrdId() {
		return pkPrdId;
	}

	public void setPkPrdId(String pkPrdId) {
		this.pkPrdId = pkPrdId;
	}

	public String getIsAllow() {
		return isAllow;
	}

	public void setIsAllow(String isAllow) {
		this.isAllow = isAllow;
	}

	public String getAuditRemark() {
		return auditRemark;
	}

	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}

	public String getPrdName() {
		return prdName;
	}

	public void setPrdName(String prdName) {
		this.prdName = prdName;
	}

	public String getPrdSpec() {
		return prdSpec;
	}

	public void setPrdSpec(String prdSpec) {
		this.prdSpec = prdSpec;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getFkPrdId() {
		return fkPrdId;
	}

	public void setFkPrdId(String fkPrdId) {
		this.fkPrdId = fkPrdId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


	public Double getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}

	public Double getHeadPrice() {
		return headPrice;
	}
	public void setHeadPrice(Double headPrice) {
		this.headPrice = headPrice;
	}

	public Date getValidFrom() {
		return validFrom;
	}

	public void setValidFrom(Date validFrom) {
		this.validFrom = validFrom;
	}

	public Date getValidTo() {
		return validTo;
	}

	public void setValidTo(Date validTo) {
		this.validTo = validTo;
	}

	public String getModiBy() {
		return modiBy;
	}

	public void setModiBy(String modiBy) {
		this.modiBy = modiBy;
	}

	public Date getModiTime() {
		return modiTime;
	}

	public void setModiTime(Date modiTime) {
		this.modiTime = modiTime;
	}
    
  
}